package com.guigu.www.controller;


import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.guigu.www.pojo.TSetmeal;
import com.guigu.www.service.TSetmealService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 套餐表 前端控制器
 * </p>
 *
 * @author yb
 * @since 2021-06-29
 */
@RestController
@CrossOrigin
public class TSetmealController {

    @Autowired
    private TSetmealService tSetmealService;
    @PostMapping("tSetmealShow")
    public List<TSetmeal> show(){
        List<TSetmeal> tSetmeals = tSetmealService.selectList(new EntityWrapper<TSetmeal>());
        return tSetmeals;
    }
}

